import Ember from 'ember';

export default Ember.Controller.extend({
	actions : {
		save : function (){
			var model = this.model;
      var controller = this;
      this.store.save(model).then(function(data){
        console.log(1, data);
        controller.transitionToRoute('nations.info', model);
      }, function(){
        alert('保存失败');
      });
		}
	}
});
